/**
 * @desc 图片组件
 * @props { number } width 按钮类型
 * @props { number } height  是否显示loading
 * @props { string } src 点击按钮事件
 */
import React, { Component } from 'react'
import { Image } from 'antd';
import PropTypes from 'prop-types'
class TheImage extends Component {
    render() {
        const { width, height, src } = this.props;
        return <Image
            width={width}
            height={height}
            src={src}
            {...this.props}
            //fallback=""
            fallback=""
        />
    }
}
TheImage.propTypes = {
    // width:PropTypes.string,
    // height:PropTypes.string,
    src: PropTypes.string,
}
TheImage.defaultProps = {
    width: 200,
    height: 'auto',
    src: 'error',
}
export default TheImage